from info import create_app
from flask_script import Manager
from flask_migrate import MigrateCommand,Migrate
from info import db


# 配置app是什么开发类型
app = create_app("development")
# 管理类管理app
manager = Manager(app)
# 建立数据库迁移对象
Migrate(app,db)
# 把迁移指令加进manager对象中
manager.add_command("db",MigrateCommand)


if __name__ == '__main__':
    manager.run()
